var p = prompt("请输入圆的半径");

var c = 2 * p * Math.PI;

var s = p * p * Math.PI;

document.querySelector("#r").value = p;
document.querySelector("#c").value = c;
document.querySelector("#s").value = s;